package exe3.carrent;

public class Rentalcompany {
    private  int money;//钱
    private  int days;//天数
    private  int brand;//车牌号
    private  String name;//姓名

    public Rentalcompany() {
    }

    public Rentalcompany(int money, int days, int brand, String name) {
        this.money = money;
        this.days = days;
        this.brand = brand;
        this.name = name;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public int getDays() {
        return days;
    }

    public void setDays(int days) {
        this.days = days;
    }


    public int getBrand() {
        return brand;
    }

    public void setBrand(int brand) {
        this.brand = brand;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Rentalcompany{" +
                "money=" + money +
                ", days=" + days +
                ", brand=" + brand +
                ", name='" + name + '\'' +
                '}';
    }
  public  void  show(){
      System.out.println("姓名："+getName()+"车辆名："+getBrand()+"租了"+getDays()+"天"+"租金为："+getMoney());
  }

}
